const http = require('http')

const server = http.createServer((request, response) => {
  request.on('data', (chunk) => {
    console.log(chunk.toString())
  })
  request.on('end', () => {
    console.log('end')
  })
  response.end('hello node')
})

server.listen(9000, () => {
  console.log('http://localhost:9000')
})
